package com.juc.threadPoolExecutor.threadPoolExecutor16;

public class MyRunnable implements Runnable{

	private String username;
	
	public MyRunnable(String username){
		super();
		this.username = username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUsername(){
		return username;
	}
	@Override
	public void run() {
		try {
			System.out.println("打印了! begin  " + username +  "  " + System.currentTimeMillis());
			Thread.sleep(4000);
			System.out.println("打印了! end  " + username +  "  " + System.currentTimeMillis());

		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
